<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v-bind="http://www.w3.org/1999/xhtml"
      xmlns:v-on="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>首页</title>
    <link rel="stylesheet" href="../lib/basic/css/bootstrap.min.css">
    <link href="../lib/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css"/>
    <link href="../lib/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css"/>
    <link href="../lib/basic/css/demo.css" rel="stylesheet" type="text/css"/>
    <link href="../home/css/hmstyle.css" rel="stylesheet" type="text/css"/>
    <link href="../home/css/skin.css" rel="stylesheet" type="text/css"/>
    <link type="text/css" href="../home/css/sellsenter.css" rel="stylesheet" />
    <script src="../lib/AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
    <script src="../lib/AmazeUI-2.4.2/assets/js/amazeui.min.js"></script>
    <script src="../home/js/bootstrap.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../lib/elementui/1.4.3/theme-default/index.css">
    <script src="../home/js/vue.min.js"></script>
    <script src="../lib/elementui/1.4.3/index.js"></script>
    <style>
        .el-menu--collapse .el-submenu{
            position: static;
        }
        .el-submenu .el-menu{
            display: block;
            min-height: 450px;
            min-width: 160px;
            background-color: #FFFFFF;
        }
        .el-menu>span{
            float: left;
            color:blue;
            margin-right: 10px;
            font-size: 15px;

        }
        .el-submenu ul ul{
            width:700px;
            display: block;
        }
        .el-submenu ul li ul{
            display: block;
        }
        .el-menu-item-group ul span:first-child{color:#197aff;font-size: 14px;margin-right: 10px;font-weight: 700}

    </style>
</head>
<body>
<div id="home">
    <div class="hmtop">
        <!--顶部导航条 -->
        <div class="am-container header">
            <ul class="message-l">
                <div class="topMessage">
                    <div class="menu-hd">
                        <a v-if="type == 0"  href="../login.html" target="_top" class="h">亲，请登录</a>
                        <a v-if="type == 1" href="../login.html" target="_top" class="h">切换账号</a>
                        <a href="../home/mp3Info.html" target="_top" class="h" style="margin-left: 50px;">学习视频</a>
                    </div>
                </div>
            </ul>
            <ul class="message-r">
                <div class="topMessage home">
                    <div class="menu-hd"><a href="../home/home.html" target="_top" class="h">商城首页</a></div>
                </div>
                <div class="topMessage home">
                    <div class="menu-hd"><a href="../person/unitsenter.html" target="_top"  >采购单位入驻</a></div>
                </div>
                <div class="topMessage home">
                    <div class="menu-hd"><a href="../person/sellsenter.html" target="_top" class="h">商家入驻</a></div>
                </div>
                <div class="topMessage my-shangcheng">
                    <div class="menu-hd MyShangcheng"><a href="../person/index.html" target="_top"><i
                            class="am-icon-user am-icon-fw"></i>管理中心</a>
                    </div>
                </div>
                <div class="topMessage mini-cart">
                    <div class="menu-hd"><a id="mc-menu-hd" href="../person/shopcart.html" target="_top"><i
                            class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span></a>
                    </div>
                </div>
            </ul>
        </div>
        <!--悬浮搜索框-->
        <div class="nav white">
            <div class="logo"><img src=""/></div>
            <div class="logoBig">
                <li><img src="../lib/images/logobig.png"/></li>
            </div>
            <div class="search-bar pr">
                <div class="search-tab">
                    <a id="shop" v-on:click="onShop(1);" href="javascript:void(0)">商品</a>
                    <a id="sell" v-on:click="onShop(2);"href="javascript:void(0)">供货商</a>
                </div>
                <form >
                    <input id="searchInput" name="index_none_header_sysc" type="text" placeholder="搜索"
                           autocomplete="off">
                    <input id="ai-topsearch"  v-on:click=shopSelect class="submit am-btn" value="搜索" index="1" type="button">
                </form>
            </div>
        </div>

        <div class="clear"></div>
    </div>
    <div class="banner">
        <!--轮播 -->
        <div class="am-slider am-slider-default scoll" data-am-flexslider id="demo-slider-0">
            <ul class="am-slides">
                <li class="banner1"><a><img src="../lib/images/ad1.jpg" title="阳光云采"/></a></li>
                <li class="banner2"><a><img src="../lib/images/ad2.jpg" title="阳光云采"/></a></li>
                <li class="banner3"><a><img src="../lib/images/ad3.jpg" title="阳光云采"/></a></li>
                <li class="banner4"><a><img src="../lib/images/ad4.jpg" title="阳光云采"/></a></li>
            </ul>
        </div>
        <div class="clear"></div>
    </div>
    <div class="shopNav">
        <div class="slideall">
            <a href="search.html">
                <div class="long-title"><span class="all-goods">全部分类</span></div>
            </a>
            <div class="nav-cont">
                <ul>
                    <li class="qc" v-for="site in goodsType">
                        <a v-bind:href="site.href">{{ site.name }}</a>
                    </li>

                </ul>

            </div>
            <!--侧边导航 -->
            <div id="nav" class="navfull">
                <div class="area clearfix">
                    <div class="category-content" id="guide_2">
                        <div class="category">
                            <ul class="category-list" id="js_climit_li">
                                <li id="btn" class="appliance js_toggle relative first"
                                    v-for="leftNav in leftNavigation">
                                    <div id="category-info" class="category-info" v-on:mouseover="mouseover(leftNav.id)">
                                        <h4 class="category-name b-category-name">
                                            <a class="ml-22" title="" href="javascript:void(0);"  v-on:click="hrefLike(leftNav);">{{leftNav.name }}</a></h4>
                                    </div>
                                    <div v-bind:id="(leftNav.id)" class="menu-item menu-in top" style="display: none">
                                        <div class="area-in">
                                            <div class="area-bg">
                                                <div class="menu-srot">
                                                    <div class="sort-side">
                                                        <dl class="dl-sort" v-for="leftNavVal in leftNav.childMenus">
                                                            <dt><a href="javascript:void(0);"  v-on:click="hrefLike(leftNavVal);" ><span title="">{{ leftNavVal.name }}</span></a></dt>
                                                            <dd v-for="leftNavVal_v in leftNavVal.childMenus">
                                                                <a href="javascript:void(0);" title="" v-on:click="hrefLike(leftNavVal_v);">
                                                                <span>{{ leftNavVal_v.name }}</span></a>
                                                            </dd>
                                                        </dl>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>

            <!--轮播-->

            <script type="text/javascript">
                (function () {
                    $('.am-slider').flexslider();
                });
                $(document).ready(function () {
                    $("li").hover(function () {
                        $(".category-content .category-list li.first .menu-in").css("display", "none");
                        $(".category-content .category-list li.first").removeClass("hover");
                        $(this).addClass("hover");
                        $(this).children("div.menu-in").css("display", "block")
                    }, function () {
                        $(this).removeClass("hover")
                        $(this).children("div.menu-in").css("display", "none")
                    });
                })
            </script>
            <!--走马灯 -->
            <div class="marqueen">
                <span class="marqueen-title">最新公告</span>
                <div class="demo">

                    <ul class="caselink">
                        <li v-for="noticeVo in noticeVo">
                            <a href="javascript:void(0);" target="_blank"  v-on:click="entertip(noticeVo)">
                                <span>[{{ noticeVo.ncLabel }}]</span>
                                {{ noticeVo.name }}
                            </a>
                        </li>
                    </ul>

                </div>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    <div class="shopMainbg">
        <div class="shopMain" id="shopmain">

            <!--今日推荐 -->

            <div class="am-g am-g-fixed recommendation">
                <div class="clock am-u-sm-3">
                    <img src="../lib/images/2018.jpg ">
                    <p>今日<br>推荐</p>
                </div>
                <div class="am-u-sm-4 am-u-lg-3 ">
                    <div class="info ">
                        <h3>新年快乐!</h3>
                        <h4>万事大吉!</h4>
                    </div>
                    <div class="recommendationMain one">
                        <a href="introduction.html"><img src="../lib/images/tj.png "></img></a>
                    </div>
                </div>
                <div class="am-u-sm-4 am-u-lg-3 ">
                    <div class="info ">
                        <h3>合家欢乐!</h3>
                        <h4>财源广进!</h4>
                    </div>
                    <div class="recommendationMain two">
                        <img src="../lib/images/tj1.png "></img>
                    </div>
                </div>
                <div class="am-u-sm-4 am-u-lg-3 ">
                    <div class="info ">
                        <h3>心的祝福!</h3>
                        <h4>新的起点!</h4>
                    </div>
                    <div class="recommendationMain three">
                        <img src="../lib/images/tj2.png "></img>
                    </div>
                </div>

            </div>
            <div class="clear "></div>
            <!--热门活动 -->

            <div class="am-container activity " >
                <div class="shopTitle ">
                    <h4>商家详情</h4>
                    <h3> 精彩不断 优惠享不停 </h3>
                </div>
                <div class="am-g am-g-fixed ">
                    <div class="am-u-sm-3 "  v-for="activityList in activity">
                        <div class="activityMain" v-on:click="onActivity(activityList)">
                            <a href="javascript:void(0);">
                                <img  v-bind:src="activityList.companyLogo" v-bind:title="activityList.companyName"></img></a>
                        </div>
                        <div class="info " v-on:click="onActivity(activityList)" style="white-space: nowrap;overflow: hidden;">
                            <a href="javascript:void(0);"><h3>{{ activityList.companyName }}</h3></a>
                        </div>
                    </div>

                </div>
            </div>
            <div class="clear "></div>


            <div v-for="mix in mixture" >
                <!--甜点-->
                <div class="am-container ">
                    <div class="shopTitle ">
                        <h4>{{ mix.name }}</h4>
                    </div>
                </div>
                <div class="am-g am-g-fixed floodFour">
                    <div class="am-u-sm-5 am-u-md-4 text-one list ">
                        <a>
                            <div class="outer-con ">
                                <div class="title ">
                                    {{ mix.name }}
                                </div>
                                <div class="sub-title ">
                                    {{ mix.name }}
                                </div>
                            </div>
                            <img  v-bind:src="mix.image" v-bind:title="mix.name" />
                        </a>
                        <div class="triangle-topright"></div>
                    </div>
                    <div class="am-u-sm-7 am-u-md-4 text-two " v-for="mixVal in mix.val">
                        <div class="outer-con ">
                            <div class="title ">
                                <div style="overflow: hidden;white-space:  normal;text-overflow: ellipsis;">
                                    <span>{{mixVal.commodityName}}</span>
                                </div>
                                <div id="compare">
                                    <input id="input1" class="on_show" v-on:click="on_showClick(mixVal)" type="checkbox" style="width: 15px;"/>
                                    <span id="spanpan3">比较</span>
                                </div>
                            </div>
                            <div class="sub-title ">
                                {{mixVal.commodityTrcPrc}}
                            </div >
                            <a :plain="true" id="jump" ><i v-on:click="onAddData(mixVal);" title="加入购物车" class="am-icon-shopping-basket am-icon-md  seprate" style="z-index:999;"></i></a>
                        </div>
                        <a align="center" href="javascript:void(0);"><img v-on:click="onTouch(mixVal)" v-bind:title="mixVal.commodityName" v-bind:src="mixVal.masterMap" style="width: 130px;"/></a>
                    </div>
                </div>
                <div class="clear "></div>
            </div>
            <script type="text/javascript" src="../charge/foot.js"></script>
        </div>
    </div>
    <!--引导 -->
    <div class="navCir">
        <li class="active"><a href="home.html"><i class="am-icon-home "></i>首页</a></li>
        <li><a href="sort.html"><i class="am-icon-list"></i>分类</a></li>
        <li><a href="../person/shopcart.html"><i class="am-icon-shopping-basket"></i>购物车</a></li>
        <li><a href="../person/index.html"><i class="am-icon-user"></i>我的</a></li>
    </div>
    <!--菜单 -->
    <div class=tip>
        <div id="sidebar">
            <div id="wrap">
                <div class="quick_toggle">
                    <li class="qtitem">
                        <a href="#"><span class="kfzx"></span></a>
                        <div class="mp_tooltip">客服中心<i class="icon_arrow_right_black"></i></div>
                    </li>
                    <!-- &lt;!&ndash;预警信息&ndash;&gt;
                     <li class="qtitem " id="qtitem" data-toggle="modal" data-target="#exampleModal"  v-on:click = "show_warn">
                         <a href="#"><span class="kfzy"></span></a>
                         <div class="mp_tooltiq">预警<i class="icon_arrow_right_qlack"></i></div>
                     </li>-->
                    <!--二维码 -->
                    <li class="qtitem" >
                        <a href="#none"><span class="mpbtn_qrcode"></span></a>
                        <div class="mp_qrcode" style="display:none;"><img src="../lib/images/weixin_code_145.png"/><i
                                class="icon_arrow_white"></i></div>
                    </li>
                    <li class="qtitem">
                        <a href="#top" class="return_top"><span class="top"></span></a>
                    </li>
                </div>

                <!--回到顶部 -->
                <div id="quick_links_pop" class="quick_links_pop hide"></div>
            </div>
        </div>
    </div>


    <!-- 采购单位入驻表单-->
    <div class="modal fade" id="unitModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
        <div class="modal-dialog" role="document" style="margin-left: 0px;">
            <div class="modal-content" style="width: 600px; height:auto;margin: auto ;margin-top:-80px; ">
                <div class="modal-body" style="margin-top: 20px;">
                    <div class="form-group">
                        <a href="#" class="am-close" data-dismiss="modal"style="float: right;margin-top: -20px;">&times;</a>
                        <h1 for="message-text" class="control-label" style="text-align: center;font-size: 20px;margin-bottom: 20px;margin-left: 20px;">采购单位入驻</h1>

                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 商品对比-->

    <div id="contrast" style="background-color: #f9f9f9;display: none;position: sticky;bottom: 50px;width: 600px;height: 150px;z-index: 9999;margin: auto">
        <div style="border: 1px solid ghostwhite;width: 100%;height: 100%">
            <div style="float: left;border: 1px solid silver;height: 100%"
                 v-for="contrast in contrastInformation">
                <div style="width: 100px;">
                    <div><img id="src_2" v-bind:src="contrast.masterMap" v-bind:title="contrast.commodityName"></div>
                </div>
                <div style="width: 100px;text-align: center;overflow: hidden;white-space:normal;text-overflow: ellipsis;">
                    <span id="font_2">{{ contrast.commodityName }}</span>
                </div>
            </div>

            <div style="width: 88px;height:100%;border: 1px solid silver;float: right">
                <div id="cl" style="padding-top: 1px;padding-left: 73px;"
                     v-on:click="on_hideClick">
                    <span><a href="javascript:void(0);">X</a></span>
                </div>
                <div style="padding-left: 16px;padding-top: 40px">
                    <button class="btn btn-primary btn-sm" data-toggle="modal" data-target="#myModal"
                            style="padding: 4px 12px;">
                        对比
                    </button>
                    <!-- 模态框（Modal） -->
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
         aria-hidden="true">
        <div class="modal-dialog" style="width: 70%">
            <div class="modal-content" style="margin: auto;width: 80%">
                <div class="modal-header">
                    <button type="button" class="close" v-on:click="on_shClick" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myModalLabel" align="center">
                        商品对比信息
                    </h4>
                </div>
                <div class="modal-body">
                    <template>
                        <el-table :data="contrastInformation" border show-overflow-tooltip   align="center"   >
                            <el-table-column  prop="commodityName" label="货物名称" show-overflow-tooltip align="center"></el-table-column>
                            <el-table-column  prop="commodityMakPrc" label="市场价格" show-overflow-tooltip align="center"></el-table-column>
                            <el-table-column  prop="commodityTrcPrc" label="入围价格" show-overflow-tooltip align="center"></el-table-column>
                            <el-table-column  prop="salesGross" label="总销量" show-overflow-tooltip align="center"></el-table-column>
                            <el-table-column  prop="brand" label="品牌信息" show-overflow-tooltip align="center"></el-table-column>
                            <el-table-column  prop="model" label="商品型号" show-overflow-tooltip align="center"></el-table-column>
                            <el-table-column  prop="businessesName" label="供应商" show-overflow-tooltip align="center"></el-table-column>
                            <el-table-column  prop="manufacturer" label="生产厂商" show-overflow-tooltip align="center"></el-table-column>
                            <el-table-column label="操作" align="center">
                                <template scope="scope">
                                    <el-button type="success" size="small " v-on:click="onAddDataBefore(scope.row)">加入购物车</el-button>
                                </template>
                            </el-table-column>
                        </el-table>
                    </template>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>

</div>

<script type="text/javascript">
    var wuf;
    //无缝上移动画函数

    function wufeng(){

        //设置定时器实现不停上移
        wuf = setInterval(function(){

            //把整个内容的列表div整体往上移动一个标题的高度动画
            $('.caselink').animate({marginTop:'-24px'},1500,function(){

                //移动后把第一个遮住的li移动到整个内容div里面的最小面去，就是把第一个li放到最后一个li位置
                $(this).children('li').eq(0).appendTo('.caselink');

                //然后把整个内容的div设置回来,这时候原来的第二个li在第一的位置
                $(this).css('margin-top','0px');

            });

        },2000);

    }


    //默认执行
    wufeng();

</script>
<script src="../charge/home.js"></script>
<script>
    $('#unitModal').on('show.bs.modal', function (event) {
        var button = $(event.relatedTarget) // 触发事件的按钮
        var recipient = button.data('whatever') // 解析出data-whatever内容
        var modal = $(this)

        modal.find('.modal-body input').val(recipient)
    });
</script>
<script>
    $('#exampleModal').on('show.bs.modal', function (event) {
        var button = $(event.relatedTarget) // 触发事件的按钮
        var recipient = button.data('whatever') // 解析出data-whatever内容
        var modal = $(this)

        modal.find('.modal-body input').val(recipient)
    })
</script>
<script type="text/javascript">
    $('#myModal').on('shown.bs.modal', function (e) {
        // 关键代码，如没将modal设置为 block，则$modala_dialog.height() 为零
        $(this).css('display', 'block');
        var modalHeight = $(window).width() / 2 - $('#myModal .modal-dialog').width() / 2;
        $(this).find('.modal-dialog').css({
            'margin-left': modalHeight
        });
    });
</script>
</body>
</html>